﻿using RBAC.MaHaiBo.Entity;
using RBAC.MaHaiBo.Entity.Traceability;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.MaHaiBo.Service.TraceabilityService
{
    /// <summary>
    /// 屠宰服务层接口
    /// </summary>
    public interface ISlaughterService
    {
        /// <summary>
        /// 添加屠宰信息
        /// </summary>
        /// <param name="slaughter">要添加的数据信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddSlaughter(Slaughter slaughter);
        /// <summary>
        /// 修改屠宰信息
        /// </summary>
        /// <param name="slaughterId">修改后的屠宰信息</param>
        /// <returns>返回受影响行数 </returns>
        Task<int> UPdSlaughter(Slaughter slaughterId);
        /// <summary>
        /// 显示屠宰信息
        /// </summary>
        /// <param name="LOT"></param>
        /// <returns>返回数据信息</returns>
        Task<List<Slaughter>> GetSlaughter(string? LOT);

        /// <summary>
        /// 添加屠宰企业信息
        /// </summary>
        /// <param name="firm">企业信息</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddSlaughterFirm(Firm firm);

        /// <summary>
        /// 显示屠宰企业信息
        /// </summary>
        /// <returns>返回数据集合</returns>
        Task<List<SlaughterFirmDTO>> GetSlaughterFirm(string? LOT);


    }
}
